<!DocType html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
 <head>
  <meta content="text/html;charset=utf-8"/>
 </head>
 <script type="text/javascript" th:src="@{/js/queryBook.js}">
 
 </script>
 <body>
  <table border="1">
   <tr id="table">
    <td><button onclick="as()">删除</button></td>
    <th>图书id</th>
    <th>书名</th>
    <th>作者</th>
    <th>价格</th>
    <th>借阅人</th>
   </tr>
   <tr th:each="book,bookStat:${list}">
    <td><input type="checkbox" id="cbox" name="cbox1" th:value="${book.bid}" /></td>
    <td th:text="${book.bid}" ></td>
    <td th:text="${bookStat.index}"></td>
    <td th:text="${book.bname}"></td>
    <td th:text="${book.author}"></td>   
    <td th:text="${book.price}"></td>
    <td th:text="${book.borrower}" ></td>
    <td><button th:value="${book.bid}" th:id="${book.bid}" onclick="ad(this)">修改</button></td>
   </tr>
  </table>
 </body>
</html>